
/*首页的hover*/
function change_Firstpage(index){
    if(index==1){
        var box= document.getElementById("box_1").style.backgroundColor="#fff";
        var text= document.getElementById("text_1").style.color="#d97873";
        var img= document.getElementById("box_11").style.backgroundImage="url(./imgs/text_1.png)";
    }
    else if(index==2){
        var box= document.getElementById("box_2").style.backgroundColor="#fff";
        var text= document.getElementById("text_2").style.color="#05bf6c";
        var img= document.getElementById("box_12").style.backgroundImage="url(./imgs/text_2.png)";
    }
    else if(index==3){
        var box= document.getElementById("box_3").style.backgroundColor="#fff";
    }
    else if(index==4){
        var box= document.getElementById("box_4").style.backgroundColor="#fff";
    }
    if(index==5){
        var box= document.getElementById("box_5").style.backgroundColor="#fff";
        var text= document.getElementById("text_5").style.color="#d97873";
        var img= document.getElementById("box_15").style.backgroundImage="url(./imgs/text_5.png)";
    }
    else if(index==6){
        var box= document.getElementById("box_6").style.backgroundColor="#fff";
        var text= document.getElementById("text_6").style.color="#05bf6c";
        var img= document.getElementById("box_16").style.backgroundImage="url(./imgs/text_6.png)";
    }
}
function nochange_Firstpage(index) {
    for (var i=1;i<=6;i++){
        if(i==index){
            var box= document.getElementById("box_"+i).style.backgroundColor="";
            var text= document.getElementById("text_"+i).style.color="";
            var img= document.getElementById("box_1"+i).style.backgroundImage="";
        }
    }
}
